import { AxiosAccount } from '../utils/http/request';

//app版本管理
enum appVersionsApi {
  list = '/app/versions/list',
  add = '/app/versions/add',
  detail = '/app/versions/detail',
  edit = '/app/versions/edit',
  delete = '/app/versions/delete',
}

//app协议管理
enum agreementApi {
  list = '/app/agreement/list',
  add = '/app/agreement/add',
  detail = '/app/agreement/detail',
  edit = '/app/agreement/edit',
  delete = '/app/agreement/delete',
}

//app版本管理列表
export const appVersionsList = (data: any) =>
  AxiosAccount.request({
    url: appVersionsApi.list,
    method: 'post',
    data,
  });
//app版本管理添加
export const appVersionsAdd = (data: any) =>
  AxiosAccount.request({
    url: appVersionsApi.add,
    method: 'post',
    data,
  });
//app版本管理详情
export const appVersionsDetail = (data: any) =>
  AxiosAccount.request({
    url: appVersionsApi.detail,
    method: 'post',
    data,
  });
//app版本管理修改
export const appVersionsEdit = (data: any) =>
  AxiosAccount.request({
    url: appVersionsApi.edit,
    method: 'post',
    data,
  });
//app版本管理删除
export const appVersionsDelete = (data: any) =>
  AxiosAccount.request({
    url: appVersionsApi.delete,
    method: 'post',
    data,
  });

//app协议列表
export const agreementList = (data: any) =>
  AxiosAccount.request({
    url: agreementApi.list,
    method: 'post',
    data,
  });
//app协议添加
export const agreementAdd = (data: any) =>
  AxiosAccount.request({
    url: agreementApi.add,
    method: 'post',
    data,
  });
//app协议详情
export const agreementDetail = (data: any) =>
  AxiosAccount.request({
    url: agreementApi.detail,
    method: 'post',
    data,
  });
//app协议修改
export const agreementEdit = (data: any) =>
  AxiosAccount.request({
    url: agreementApi.edit,
    method: 'post',
    data,
  });
//app协议删除
export const agreementDelete = (data: any) =>
  AxiosAccount.request({
    url: agreementApi.delete,
    method: 'post',
    data,
  });
